<?php
/**
 * Created by PhpStorm.
 * User: junyv
 * Date: 2017/4/15
 * Time: 15:43
 */

namespace app\home\controller\user;


class Index extends Common
{
    public function index(){
        $action = input('param.action','pannel');
        if($action == 'pannel'){
            $url = url('user.index/pannel');
        }else{
            $url = url('user.'.$action.'/add');
        }

        $this->setSeo(['title'=>'会员中心']);
        $this->assign('uri',$url);
        $this->assign('userInfo',$this->getUserInfo());
        return $this->fetch();
    }
    public function pannel(){
        return $this->fetch();
    }
}